package com.china.school.factory;

import com.china.school.pojo.User;

public class UserFactoryBean {
    public static User staticCreateUser(String name,String password){
        User user = new User();
        user.setUsername(name);
        user.setPassword(password);
        return user;
    }
    public   User createUser(String name,String password){
        User user = new User();
        user.setUsername(name);
        user.setPassword(password);
        return user;
    }


}
